/*
 * Shanghai Buyan Technology Development Co., Ltd
 * Web Site: http://www.buyantech.com
 * Since 2011 - 2012
 */package com.buyantech.smweb.service;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javacommon.base.*;
import cn.org.rapid_framework.page.*;
import com.buyantech.smweb.model.*;
import com.buyantech.smweb.dao.*;
import com.buyantech.smweb.vo.query.*;

/**
 * @author Albert email:albert(a)buyantech.com
 * @version 1.0
 * @date 2012-05-10
 */

@Service
@Transactional
public class AutoPaterManager extends BaseManager<AutoPater,java.lang.String>{

	private AutoPaterDao autoPaterDao;
	/**增加setXXXX()方法,spring就可以通过autowire自动设置对象属性,请注意大小写*/
	
	@Override
	public EntityDao getEntityDao() {
		return this.autoPaterDao;
	}
	
	public void setAutoPaterDao(AutoPaterDao autoPaterDao) {
		this.autoPaterDao = autoPaterDao;
	}

	@Transactional(readOnly=true)
	public Page findPage(AutoPaterQuery query) {
		return autoPaterDao.findPage(query);
	}
	@Transactional(readOnly=true)
	public Page searchPage(AutoPaterQuery query) {
		return autoPaterDao.searchPage(query);
	}
	 

}
